// 批量注册全局组件
import Vue from 'vue'
import GTable from './GTable'
import TreeTable from './TreeTable'
import SlotHeader from './SlotHeader'
import GSearch from './GSearch'
import GDialog from './GDialog'
import UploadFile from './UploadFile'

const componentList = [
  GTable,
  SlotHeader,
  GSearch,
  TreeTable,
  GDialog,
  UploadFile
]

const componentPlugins = {
  install() {
    componentList.forEach((comp) => {
      Vue.component(comp.name, comp)
    })
  }
}

export default componentPlugins

